package com.gupao.javavip.spirng.mvc;

import com.gupao.javavip.spirng.framework.annotation.MyController;
import com.gupao.javavip.spirng.framework.annotation.MyRequestMapping;
import com.gupao.javavip.spirng.framework.annotation.MyRequestParam;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: king
 * @Description:
 * @Date:Create：in 2019/11/4 22:41
 * @Modified By：
 */
@MyController
@MyRequestMapping("/test")
@Slf4j
public class TestController {
    @MyRequestMapping("add")
    public String add(String param1, String param2, @MyRequestParam("param3") String param) {
        log.info("request:[param1=" + param1 + "] [param2=" + param2 + "] [param3=" + param + "]");
        return "ADD";
    }

    @MyRequestMapping("query")
    public String query() {
        return "QUERY";
    }
}
